package cn.whale.task.schedule;

import cn.whale.task.service.IMqLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//支付结果发送到MQ的重试任务
@Component
public class PayResultToMQTask {

    @Autowired
    private IMqLogService mqLogService;


    @Scheduled(cron = "0/10 * * * * *")
    public void handlerPayResultToMQ(){
        mqLogService.payResultToMQRetry();
    }
}
